import { TodoItem } from '../types';

export const getDayStatus = (todos: TodoItem[]): string => {
  if (!todos.length) return 'bg-white';
  
  const completedCount = todos.filter(todo => todo.completed).length;
  const totalCount = todos.length;
  
  if (completedCount === totalCount) return 'bg-green-100';
  if (completedCount === 0) return 'bg-red-100';
  return 'bg-yellow-100';
};